// out:false
// 声明基准值变量
// width: (10 / 37.5rem)
@baseSize: 37.5rem;
@gColor: #14916a;

body {
  background-color: #f3f3f3;
}

//版心 公共样式
.wrapper {
  width: (355 / @baseSize);
  margin: 0 auto;
}

//去掉滚动条
.container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;

  &::-webkit-scrollbar {
    display: none;
  }
}


// 右边：右导航栏（公共部分）
.subnav {
  // display: flex;
  display: none;
  flex-direction: column;
  width: (174 / @baseSize);
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  z-index: 99;
  top: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; // 允许滚动

  &.active {
    display: block;
  }

  .offbtn {
    display: inline-block;
    margin-top: (14 / @baseSize);
    margin-bottom: (37 / @baseSize);
    margin-left: (134 / @baseSize);
    font-size: (20 / @baseSize);
    color: #fff;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    li {

      margin-bottom: (10 / @baseSize);

      a {
        display: inline-block;
        border: (1 / @baseSize) solid rgba(0, 0, 0, 0);
        box-sizing: border-box;
        width: (137 / @baseSize);
        padding: (7 / @baseSize) 0;
        padding-left: (22 / @baseSize);
        font-size: (12 / @baseSize);
        color: #fff;
        margin-left: (21 / @baseSize);

        &.show {
          color: @gColor;
          background-color: #fff;
          border: (1 / @baseSize) solid #fff;
          border-top-left-radius: (15 / @baseSize);
          border-bottom-right-radius: (15 / @baseSize);
        }
      }



      // &:hover a {
      //   color: @gColor;
      //   background-color: #fff;
      //   border: (1 / @baseSize) solid #fff;
      //   border-top-left-radius: (15 / @baseSize);
      //   border-bottom-right-radius: (15 / @baseSize);
      // }
    }
  }
}

//定义轮播图关键帧
@keyframes slide {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(-200%);
  }
}

// 顶部banner部分（公共部分）
.bannar {
  background: url(../images/index-banner.png) no-repeat center center;
  background-size: cover;
  width: (375 / @baseSize);
  height: (250 / @baseSize);

  .slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    .slide {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      animation: slide 4s ease infinite;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      &:nth-child(1) {
        left: 0;
      }

      &:nth-child(2) {
        left: 100%;
      }

      &:nth-child(3) {
        left: 200%;
      }
    }
  }

  // 顶部导航栏
  .topbar {
    width: (375 / @baseSize);
    height: (45 / @baseSize);
    position: fixed;
    z-index: 2;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);

    .topbar-flex {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .logo {
        width: (90 / @baseSize);
        height: (28 / @baseSize);

        img {
          width: 100%;
          height: 100%;
        }

        font-size: (20 / @baseSize);

      }

      .menubtn {
        width: (20 / @baseSize);
        height: (15 / @baseSize);
        margin-right: (10 / @baseSize);

        i {
          font-size: (20 / @baseSize);
          vertical-align: top;
          text-align: center;
          color: #000;
        }
      }
    }
  }
}

// 主体标题公众部分
.title {
  text-align: center;
  margin-bottom: (21 / @baseSize);
  display: flex;
  flex-direction: column;
  align-items: center;

  h4 {
    font-weight: normal;
    font-size: (18 / @baseSize);
    line-height: (18 / @baseSize);
    color: #333;
    margin-bottom: (8 / @baseSize);
  }

  .tag {
    position: relative;
    min-width: (193 / @baseSize);
    padding: (5 / @baseSize) (30 / @baseSize);

    font-size: (10 / @baseSize);
    text-transform: uppercase;
    color: #aaa;
    border: (1 / @baseSize) solid #d3d3d3;
    border-top-left-radius: (11 / @baseSize);
    border-bottom-right-radius: (11 / @baseSize);

    // 绿色的线条
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      margin-top: (-1 / @baseSize);
      transform: translateX(-50%);
      width: (60 / @baseSize);
      height: 100%;
      border-top: (2 / @baseSize) solid @gColor;
    }
  }
}

// 页脚（公共部分）
footer {
  .foot-top {
    padding: (26 / @baseSize) (0 / @baseSize);

    .foot-contact {
      display: flex;
      flex-direction: column;
      align-items: center;

      .foot-logo {
        width: (106 / @baseSize);
        height: (28 / @baseSize);
        margin-bottom: (9 / @baseSize);

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }

      .tel-phone {
        position: relative;
        font-size: (12 / @baseSize);
        font-weight: bolder;
        color: @gColor;
        padding: (10 / @baseSize) (15 / @baseSize);
        border: 1px solid #d3d3d3;

        i {
          font-size: (16 / @baseSize);
          margin-right: (6 / @baseSize);
        }

        &::before {
          content: '';
          position: absolute;
          height: (16 / @baseSize);
          top: 50%;
          left: 0;
          transform: translate(-50%, -50%);
          border-left: (6 / @baseSize) solid #f3f3f3;
        }

        &::after {
          content: '';
          position: absolute;
          height: (16 / @baseSize);
          top: 50%;
          right: 0;
          transform: translate(50%, -50%);
          border-left: (6 / @baseSize) solid #f3f3f3;
        }
      }

    }

    //地址部分
    .footer-service {
      margin-top: (10 / @baseSize);

      .footer-service-list {
        display: flex;
        flex-direction: column;

        li {

          font-size: (12 / @baseSize);
          line-height: (24 / @baseSize);
          color: #666;

          i {
            font-size: (8 / @baseSize);
            vertical-align: (1 / @baseSize);
            margin-right: (9 / @baseSize);
          }
        }
      }
    }
  }

  //快速导航部分

  .quicknav {
    text-align: center;
    background-color: #fff;
    padding-top: (19 / @baseSize);
    padding-bottom: (11 / @baseSize);

    h4 {
      font-size: (14 / @baseSize);
      color: #000;
      margin-bottom: (8 / @baseSize);
    }

    ul {
      display: flex;
      align-content: space-between;
      flex-wrap: wrap;
      height: (40 / @baseSize);

      li {
        width: 20%;
        height: (14 / @baseSize);

        a {
          font-size: (12 / @baseSize);
          color: #555;
        }

        span {
          font-size: (12 / @baseSize);
          color: #555;
        }
      }
    }

    .footerpic {
      width: (231 / @baseSize);
      height: (32 / @baseSize);
      margin: 0 auto;
      margin-top: (24 / @baseSize);


      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }

  // 快捷入口部分
  .quick-entry {
    text-align: center;
    padding-top: (20 / @baseSize);
    padding-bottom: (14 / @baseSize);

    h4 {
      font-size: (14 / @baseSize);
      color: #000;
      margin-bottom: (22 / @baseSize);

    }

    ul {
      display: flex;

      justify-content: space-evenly;

      li {
        display: flex;
        align-items: center;
        width: (15 / @baseSize);
        height: (15 / @baseSize);
        text-align: center;

        &:nth-child(5) {
          background: url(../images/sprite1.png) no-repeat;
          background-size: cover;
          background-position: (0 / @baseSize) (0 / @baseSize);

        }

        &:nth-child(6) {
          background: url(../images/sprite1.png) no-repeat;
          background-size: cover;
          background-position: (-26.5 / @baseSize) (0 / @baseSize);
        }

        a {

          i {
            color: #555;
            font-size: (15 / @baseSize);
            vertical-align: (1 / @baseSize);
          }
        }

      }
    }

    p {
      margin-top: (27 / @baseSize);
      color: @gColor;

      a {
        font-size: (14 / @baseSize);
        color: @gColor;


      }
    }
  }

  // 版权
  .copyright {
    border-top: 1px solid rgba(0, 0, 0, .1);
    text-align: center;

    p {
      font-size: (12 / @baseSize);
      color: #555;
      padding: (15 / @baseSize) (0 / @baseSize);
    }
  }
}